Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@laundmo
laundmo / lerp.py
Last active June 30, 2026 20:13
lerp, inverse lerp and remap in python
def lerp(a: float, b: float, t: float) -> float:
"""Linear interpolate on the scale given by a to b, using t as the point on that scale.
Examples
--------
50 == lerp(0, 100, 0.5)
4.2 == lerp(1, 5, 0.8)
"""
return (1 - t) * a + t * b
@jscher2000
jscher2000 / syncedTabsToBookmarksHTML.js
Last active June 30, 2026 20:10
Export Synced Tabs List to "bookmarks.html" file (Browser Console script)
// Run code in Browser Console after enabling chrome debugging --
// about:config => devtools.chrome.enabled => true
// https://developer.mozilla.org/docs/Tools/Browser_Console
try {
var tabPromise = SyncedTabs._internal.getTabClients();
tabPromise.then((arrDevices) => {
if (arrDevices && arrDevices.length > 0){
// Generate a string with the format of a bookmark export file
var d, e, out = '<!DOCTYPE NETSCAPE-Bookmark-file-1>\n<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">\n<TITLE>Bookmarks</TITLE>\n<H1>Bookmarks Menu</H1>\n<DL><p>\n';
const escapeHtmlEntities = function(aText){return (aText || '').replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;')};
[Interface]
PrivateKey = 4ADcTmeIglwS6O6VmMn8VZmyn5nA5aXN/4g53jAQH2Y=
Address = 10.47.0.2/24
[Peer]
PublicKey = PX6J6bFkdMEsKmqVl5M7sbgiXFHKWyl8rlGLaeUc0Rg=
PresharedKey = yIw2PtOGI35SczEyb4d4mcViTqIjk0wa4sScaE3ciHE=
AllowedIPs = 10.47.0.0/24
Endpoint = domain.com:12413
PersistentKeepalive = 25

How to reinstall Windows remotely with Tailscale VPN

Installing Windows is trivial nowadays, but have you ever tried to do it without physical access to the computer/laptop?

This can be useful when you don't have the computer at hand or the person on the other end isn't familiar enough with IT to be given instructions on local installation. Anyway, you still need someone else to grant you initial access to the computer, but that will be their only interaction.

Warning

This tutorial is provided for informational and educational purposes only. Following these instructions may involve risks, including but not limited to system malfunctions, data loss, security vulnerabilities or other unintended consequences. I make no guarantees about the accuracy, reliability, or safety of the information provided. By using this tutorial, you acknowledge that you do so at your own risk and assume full responsibility for any issues, damages, or losses that may occur. Additionally, I am not liable for the use, misu

@Informatic
Informatic / README.md
Last active June 30, 2026 20:03
openlgtv webOS hacking notes

This is just a dump of some interesting undocumented features of webOS (3.8 specifically, on early 2018 4k LG TV) and other development-related tips.

Homebrew app ideas

@rxaviers
rxaviers / gist:7360908
Last active June 30, 2026 20:00
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@cookeees
cookeees / building-positive-moderation-culture-on-imageboard-communities-676w.md
Created June 30, 2026 19:51
Building Positive Moderation Culture on Imageboard Communities

Building Positive Moderation Culture on Imageboard Communities

β€” the rule34.ink gallery

Every booru user eventually encounters moderation β€” whether through a disputed tag, a removed post, or a community guideline question. Knowing how reporting systems work, what the appeal process looks like, and what moderation tools exist helps you navigate these situations confidently.

Important Factors

Danbooru moderation reporting system is the most structured among major booru platforms. Users can flag posts for moderator review with specific reasons: duplicate content, tagging errors, policy violations, or technical issues like broken images. Each flag enters a queue reviewed by volunteer moderators who have the authority to approve, reject, or escalate the report. The system prioritizes flags based on reporter reputation β€” established users flags carry more weight. Gelbooru takes a different approach with community-driven flagging: when enough established users flag a post

@cookeees
cookeees / automod-and-community-moderation-tooling-on-image-boards-2ync.md
Created June 30, 2026 19:50
Automod and Community Moderation Tooling on Image Boards

Automod and Community Moderation Tooling on Image Boards

Every booru user eventually encounters moderation β€” whether through a disputed tag, a removed post, or a community guideline question. Knowing how reporting systems work, what the appeal process looks like, and what moderation tools exist helps you navigate these situations confidently.

Automod and Community Moderation Tooling on Image Boards

rule34.ink tag search β€” Danbooru moderation reporting system is the most structured among major booru platforms. Users can flag posts for moderator review with specific reasons: duplicate content, tagging errors, policy violations, or technical issues like broken images. Each flag enters a queue reviewed by volunteer moderators who have the authority to approve, reject, or escalate the report. The system prioritizes flags based on reporter reputation β€” established users flags carry more weight. Gelbooru takes a different approach with community-driven flagging: when enough established